# windowaddEvent
snippet window.addevent
	window.addEvent('domready', function(){
		${1}
	});
# checkAll
snippet checkAll
	$checkAll(parent, chkall)
# getCheckValues()
snippet getCheckValues-->return_ids
	$getCheckValues(parent, chkall)
# echoAjax
snippet ajax(echoAjax)
	new echoAjax({url:${1:url}, params:${2:params}, reLoad:true}).fire();
# mootoosAjax
snippet ajax(mootools) 
	new Request.JSON({
		url: "/${1:url}/?id="+Math.random(),
		method: "${2:POST}",
		data: ${3:params},
		onSuccess: function(response){
			if (response.result == true || response.result == 'true') {
				${4}
			}
		},
		onFailure: function(){}
	}).send();
# confirm
snippet confirm(echo_confirm)
	new ConfirmBox({message:'${1:message}', action: function(){
		${2://code}
	}})

